import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import { Provider } from "react-redux";
import '@/styles/reset.css';
import '@/styles/antd.less';
import store, { persistor } from "./redux";
import { PersistGate } from "redux-persist/integration/react";
// Register icon sprite
import 'virtual:svg-icons-register';

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
    <Provider store={store}>
        <PersistGate persistor={persistor}>
            <App />
        </PersistGate>
    </Provider>
);
